//
//  MLTServiceCategoryCardCollectionViewCell.m
//  MotherLover
//
//  Created by lanou on 16/1/12.
//  Copyright © 2016年 zj. All rights reserved.
//

#import "MLTServiceCategoryCardCollectionViewCell.h"

@implementation MLTServiceCategoryCardCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat height = frame.size.height;
        CGFloat width = frame.size.width;
        
        self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, width, height * 2 / 3 + 50)];
        self.imageView.backgroundColor = [UIColor orangeColor];
        self.imageView.layer.cornerRadius = 30;
        self.imageView.layer.masksToBounds = YES;
        [self.contentView addSubview:self.imageView];
        
        self.nameLable = [[UILabel alloc] initWithFrame:CGRectMake(0, height * 2 / 3, width, height / 3)];
        self.nameLable.backgroundColor = [UIColor whiteColor];
        self.nameLable.layer.cornerRadius = 30;
        self.nameLable.layer.masksToBounds = YES;
//        self.nameLable.shadowColor = [UIColor lightGrayColor];
//        self.nameLable.shadowOffset = CGSizeMake(5, 10);
        [self.contentView addSubview:self.nameLable];
        
        
    }
    
    return self;
}

- (void)setNameString:(NSString *)nameString
{
    _nameString = nameString;
    
    self.nameLable.text = nameString;
    
}



@end
